<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>指导列表页</title>
</head>
<body>
	<div>
    <h2><span>${teacher.name}已指导的学生</span></h2>

    <c:choose>
        <c:when test="${empty teacher.students}">
            <tr>列表为空</tr>
        </c:when>
        <c:otherwise>
            <table border="1">
                <tr>
                    <th>id</th>
                    <th>名字</th>
                    <th>操作</th>
                </tr>
                <tbody>
                    <c:forEach items="${teacher.students}" var="student">
                        <tr>
                            <td>${student.id}</td>
 							<td>${student.name}</td>
                            <td><a href="/zhengweixin/teacher/noTutor?teacherId=${teacher.id}&studentId=${student.id}">取消指导</a> </td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>
        </c:otherwise>
    </c:choose>
</div>
</body>
</html>